{% extends "base.html" %}{% block sidebar_base %}<div id="sidebar_content">
	<div class="item_sidebar_content">
		<div class="head_item_sidebar_content">最新评论</div>
		<div class="content_item_sidebar_content" id="news_comment">
			{% for comment in news_comments %}
				<div class="iterm_new_comment">
				<img src="/static/image/tictac_blue.gif" />
				{% if comment.url %}
					<a href="{{ comment.url }}">{{ comment.nickname }}</a>
				{% else %}
					{{ comment.nickname }}
				{% endif %}
				&nbsp;&nbsp;发表于&nbsp;《<a href="/{{ comment.article.key.id }}_article.html#{{ comment.key.id }}">{{ comment.article.title }}</a>》</div>
			{% endfor %}
		</div>
	</div>
	<div class="item_sidebar_content align_center">
		<div id="cse" style="width: 100%;">Loading</div>
		<script src="http://www.google.com/jsapi" type="text/javascript"></script>
		<script type="text/javascript">
		  google.load('search', '1', {language : 'zh-CN'});
		  google.setOnLoadCallback(function(){
			var customSearchControl = new google.search.CustomSearchControl('015120481485974278726:27f2chdowhe');
			customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
			customSearchControl.draw('cse');
		  }, true);
		</script>
		<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /> <style type="text/css">
		  .gsc-control-cse {
			font-family: Arial, sans-serif;
			border-color: #FFFFFF;
			background-color: #FFFFFF;
		  }
		  input.gsc-input {
			border-color: #BCCDF0;
		  }
		  input.gsc-search-button {
			border-color: #666666;
			background-color: #CECECE;
		  }
		  .gsc-tabHeader.gsc-tabhInactive {
			border-color: #E9E9E9;
			background-color: #E9E9E9;
		  }
		  .gsc-tabHeader.gsc-tabhActive {
			border-top-color: #FF9900;
			border-left-color: #E9E9E9;
			border-right-color: #E9E9E9;
			background-color: #FFFFFF;
		  }
		  .gsc-tabsArea {
			border-color: #E9E9E9;
		  }
		  .gsc-webResult.gsc-result {
			border-color: #FFFFFF;
			background-color: #FFFFFF;
		  }
		  .gsc-webResult.gsc-result:hover {
			border-color: #FFFFFF;
			background-color: #FFFFFF;
		  }
		  .gs-webResult.gs-result a.gs-title:link,
		  .gs-webResult.gs-result a.gs-title:link b {
			color: #0000CC;
		  }
		  .gs-webResult.gs-result a.gs-title:visited,
		  .gs-webResult.gs-result a.gs-title:visited b {
			color: #0000CC;
		  }
		  .gs-webResult.gs-result a.gs-title:hover,
		  .gs-webResult.gs-result a.gs-title:hover b {
			color: #0000CC;
		  }
		  .gs-webResult.gs-result a.gs-title:active,
		  .gs-webResult.gs-result a.gs-title:active b {
			color: #0000CC;
		  }
		  .gsc-cursor-page {
			color: #0000CC;
		  }
		  a.gsc-trailing-more-results:link {
			color: #0000CC;
		  }
		  .gs-webResult.gs-result .gs-snippet {
			color: #000000;
		  }
		  .gs-webResult.gs-result .gs-visibleUrl {
			color: #008000;
		  }
		  .gs-webResult.gs-result .gs-visibleUrl-short {
			color: #008000;
		  }
		  .gsc-cursor-box {
			border-color: #FFFFFF;
		  }
		  .gsc-results .gsc-cursor-page {
			border-color: #E9E9E9;
			background-color: #FFFFFF;
		  }
		  .gsc-results .gsc-cursor-page.gsc-cursor-current-page {
			border-color: #FF9900;
			background-color: #FFFFFF;
		  }
		  .gs-promotion.gs-result {
			border-color: #336699;
			background-color: #FFFFFF;
		  }
		  .gs-promotion.gs-result a.gs-title:link {
			color: #0000CC;
		  }
		  .gs-promotion.gs-result a.gs-title:visited {
			color: #0000CC;
		  }
		  .gs-promotion.gs-result a.gs-title:hover {
			color: #0000CC;
		  }
		  .gs-promotion.gs-result a.gs-title:active {
			color: #0000CC;
		  }
		  .gs-promotion.gs-result .gs-snippet {
			color: #000000;
		  }
		  .gs-promotion.gs-result .gs-visibleUrl,
		  .gs-promotion.gs-result .gs-visibleUrl-short {
			color: #008000;
		  }
		</style> 
	</div>
	<div class="item_sidebar_content sided font_bold align_center">
		<a href="/selectatom.html" rel="nofollow">按照分类/标签定制 Feed 输出</a>
	</div>
	<div class="item_sidebar_content">
		<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=weblog-wangleiappspotcom-comment', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
		<p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p>
		<input type="hidden" value="weblog-wangleiappspotcom-comment" name="uri"/>
		<input type="hidden" name="loc" value="en_US"/>
		<input type="submit" value="Subscribe" />
		<p>Delivered by <a href="http://feedburner.google.com" target="_blank">FeedBurner</a> 邮件订阅本站评论</p></form>
	</div>
	<div class="item_sidebar_content">
		<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=weblog-wangleiappspotcom', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
		<p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p>
		<input type="hidden" value="weblog-wangleiappspotcom" name="uri"/>
		<input type="hidden" name="loc" value="en_US"/>
		<input type="submit" value="Subscribe" />
		<p>Delivered by <a href="http://feedburner.google.com" target="_blank">FeedBurner</a> 邮件订阅本站文章</p></form>
	</div>
	<div class="item_sidebar_content">
		<table width="100%"><tr><td align="left"><p><a href="http://feeds.feedburner.com/weblog-wangleiappspotcom-comment"><img src="http://feeds.feedburner.com/~fc/weblog-wangleiappspotcom-comment?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a><br />评论 feedburner 聚合</p></td>
		<td align="right"><p><a href="http://feeds.feedburner.com/weblog-wangleiappspotcom"><img src="http://feeds.feedburner.com/~fc/weblog-wangleiappspotcom?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a><br />帖子 feedburner 聚合</p></td></tr></table>
	</div>
	<div class="item_sidebar_content">
		<div class="head_item_sidebar_content">分类 & 存档</div>
		<div class="content_item_sidebar_content">
			<div id="cate_sidebar">
				<select class="select_sidebar" onchange='document.location.href=this.options[this.selectedIndex].value;'>
					<option value="/">文章分类</option>
					{% for category in categorys %}
						{% ifequal category_now.key.id category.key.id %}
						<option selected value="/{{ category.key.id }}_category.html">{{ category.name }}</option>
						{% else %}
						<option value="/{{ category.key.id }}_category.html">{{ category.name }}</option>
						{% endifequal %}
					{% endfor %}
				</select>
			</div>
			<div id="cundang_sidebar">
				<select class="select_sidebar" onchange='document.location.href=this.options[this.selectedIndex].value;'>
					<option value="/">文章存档</option>
					{% for cd in cundang %}
						{% ifequal month_year_g cd %}
							<option selected value="/{{ cd|cut:" 年" }}_timedate.html">{{ cd }}</option>
						{% else %}
							<option value="/{{ cd|cut:" 年" }}_timedate.html">{{ cd }}</option>
						{% endifequal %}
					{% endfor %}
				</select>
			</div>
		</div>
	</div>
</div>{% endblock %}
